package com.cs.contract.controller;

import com.cs.contract.service.CsCandidateService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：zrx
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud
 * @name：CsCandidateController
 * @Date：2024/11/21 19:47
 * @Filename：CsCandidateController
 */
@RestController
@RequestMapping("/candidate")
public class CsCandidateController extends BaseController {
    private final CsCandidateService csCandidateService;

    public CsCandidateController(CsCandidateService csCandidateService) {
        this.csCandidateService = csCandidateService;
    }

    @GetMapping("/getSuppHid")
        public AjaxResult getSuppHid(String iNumber) {
        System.out.println("hsvdjchshjd"+csCandidateService.getCsCandidateBySid(iNumber));
        return success(csCandidateService.getCsCandidateBySid(iNumber));
    }
}
